package com.ruoyi.otc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.otc.domain.BazaarShareholder;
import com.ruoyi.otc.mapper.BazaarShareholderMapper;
import com.ruoyi.otc.service.IBazaarShareholderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@DataSource(DataSourceType.SLAVE)
public class BazaarShareholderServiceImpl extends ServiceImpl<BazaarShareholderMapper, BazaarShareholder> implements IBazaarShareholderService {
    @Autowired
    private BazaarShareholderMapper bazaarShareholderMapper;


    @Override
    public List<BazaarShareholder> selectListBycreditCode(String creditCode) {
        return bazaarShareholderMapper.selectList(new QueryWrapper<BazaarShareholder>().eq("creditCode",creditCode));
    }
}
